import 'package:flutter_09_game/base/controller/base_list_more_controller.dart';
import 'package:flutter_09_game/http/http_export.dart';
import 'package:flutter_09_game/pages/game/game_detail/models/model_game_round.dart';
import 'package:get/get.dart';

// ModelGameRoundMyHistory  getGameRoundJoinMine
class GameMineResultsLogic extends BaseListMoreController {
  @override
  Future<List> loadData() async {
    HttpResponse response = await HttpManager().get(
      API.getGameRoundJoinMine,
      fromJson: ModelGameRoundMyHistory.fromJson,
      params: {
        'page': pageNum,
        'size': pageSize,
        'game_id': Get.arguments['id'],
      },
    );
    return response.data ?? [];
  }
}
